/*
 * Mapper.h
 *
 *  Created on: Jan 10, 2014
 *      Author: nick
 */

#ifndef MAPPER_H_
#define MAPPER_H_

#include "SDL/SDL.h"
#include "MapperGlobals.h"

//Mapper class
class Mapper {

protected:

	//Variables
	//A box of x,y and width,height coordinates
	//box
	SDL_Rect box;

	//type
	int type;

	//velocities
	int xVel, yVel;

public:

	//Methods
	//Constructor
	Mapper();

	Mapper(int x, int y, int h, int w, int type);

	//Destructor
	~Mapper();

	//isWithin( SDL_Rect)
	bool isWithin( SDL_Rect * AnotherObject );

	void handleInput();

	//getType
	int getType();

	//getBox
	SDL_Rect * getBox();

	//getX
	int getX();

	//getY
	int getY();
};

#endif /* MAPPER_H_ */
